import logo from './logo.svg';
// static静态成员 css 全局样式
import './static/css/index.css'
import './App.css';
import { Layout } from 'antd';
import Header from './component/header';
import { Switch, Route } from 'react-router-dom';

function App() {
  return (
    <Layout className="page">
      <Header />
      <Layout.Content>
        {/* Switch只匹配其中一项，也就是只显示其中的一个路由 */}
        <Switch>
          <Route path="/juejin" render={() => {
            return <div>juejin</div>
          }}></Route>
          <Route path="/blog" render={() => {
            return <div>blog</div>
          }}></Route>
        </Switch>
      </Layout.Content>
    </Layout>
  );
}

export default App;
